<?php /* SVN: $Id: index_list.ctp 99 2008-07-09 09:33:42Z rajesh_04ag02 $ */ ?>
<div class="projectFollowers index">
<div class="l-curve-top">							
		<div class="r-curve-top">
				<div class="top-bg"></div>
		</div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
								<div class="main-section">

<div class="comments-block">
              <div class="comments-top">
                <div class="comment clearfix">
								
<h2><?php echo __l('Followers');?></h2>

</div>
</div>
</div>

<ol class="list comments-list" start="<?php echo $this->Paginator->counter(array(
    'format' => '%start%'
));?>">
<?php
if (!empty($projectFollowers)):

$i = 0;
foreach ($projectFollowers as $projectFollower):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
            <li class="list-row clearfix round-5">
        		<div class="grid_1 avatar1 user-image round-3">
        			<?php echo $this->Html->getUserAvatar($projectFollower['User']['id'],'small_thumb');?>
        		<div class="comments-arrow"></div>
                </div>
                
        		<div class="data  grid_10 user-comments clearfix">
                    <div class="listing-head clearfix">
                    <h4 class="user-name">        			
                        <?php echo $this->Html->link($this->Html->cText($projectFollower['User']['username']), array('controller' => 'users', 'action' => 'view', $projectFollower['User']['username']), array('title' => $projectFollower['User']['username'], 'escape' => false));?>
						<span class="meta date-block-info posted-date">
							
							<?php  echo $this->Html->cDateTimeHighlight($projectFollower['ProjectFollower']['created']); ?>
						</span>
				    </h4>
					</div>
					<p class="following">
					 <?php echo __l('following'); ?>
					</p>

					</div>
					<?php if ( ($projectFollower['User']['id'] == $this->Auth->user('id')) ) : ?>
						<p class="follow grid_right">
					<?php
							echo $this->Html->link(__l('Unfollow'), array('controller' => 'project_followers', 'action' => 'delete', $projectFollower['ProjectFollower']['id']),array('class'=>"js-ajax-delete",'title'=>__l('Unfollow')));
					?>
					</p>
						<?php endif; ?>
	
        	
	</li>
<?php
    endforeach;
else:
?>
	<li>
		<p class="notice"><?php echo __l('No Followers available');?></p>
	</li>
<?php
endif;
?>
</ol>

<?php
if (!empty($projectFollowers)) {
    echo $this->element('paging_links');
}
?>

</div>
		</div>
							</div>
						</div>
						<div class="l-curve-bot">							
							<div class="r-curve-bot">
								<div class="bot-bg"></div>
							</div>
						</div>
</div>
